<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta name="viewport" content="width=device-width, initial-scale=1">
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
		<title>黃金期權APP下載頁</title>
		</style>
	</head>
	<body>
		<script>
			function getRootUrl() {
				return "http://git.oschina.net/richwell/gold-option-apps/raw/master/AppWebView-app-store.ipa";
			}
			$(function(){
				if (window.navigator.userAgent.match(/iP(hone|od)/i)){
					console.log('iPhone');
					location.href = 'itms-services://?action=download-manifest&url=' + getRootUrl() + 'www.goldoption168.net/files/download/golden-option-mobile.plist';
				}

				if (window.navigator.userAgent.match(/iPad/i)){
					console.log('iPad');
					location.href = 'itms-services://?action=download-manifest&url=' + getRootUrl() + 'www.goldoption168.net/files/download/golden-option-mobile.plist';
				}
				
			});
		</script>
	</body>
</html>